import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/About.vue')
  },
  {
    path:'/login',
    component: () => import( '../views/Login.vue')
  },
  {
    path:'/dl',
    component: () => import( '../views/Zhuce.vue')
  },
  {
    path:'/table',
    component: () => import( '../views/Table.vue')
  },
  {
    path:'/denglu',
    component: () => import( '../views/Denglu.vue')
  },
  {
    path:'/shanchu',
    component: () => import( '../views/Shanchu.vue')
  },
  {
    path:'/xiugai',
    component: () => import( '../views/Xiugai.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
